/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.emergency.plan.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.emergency.common.constant.enums.ParkEmergencySysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseEntity;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 事故处置方案
 *
 * @author cx
 * @date 2023-10-27 11:23:14
 */
@Data
@TableName(value ="er_accident_disposal_plan")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "事故处置方案")
public class ErAccidentDisposalPlanEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	/**
	* 事故类型
	*/
    @Schema(description="事故类型")
    private String accidentType;

	/**
	* 处置方案名称
	*/
    @Schema(description="处置方案名称")
    private String disposalPlanName;

	/**
	* 工作地点及作业项目
	*/
    @Schema(description="工作地点及作业项目")
    private String workPlaceProgram;

	/**
	* 危害程度
	*/
    @Schema(description="危害程度")
    private String harmDegree;

	/**
	* 发生条件
	*/
    @Schema(description="发生条件")
    private String happenCondition;

	/**
	* 应急组织及职责
	*/
    @Schema(description="应急组织及职责")
    private String emergencyOrgDesc;

	/**
	* 应急处置程序
	*/
    @Schema(description="应急处置程序")
    private String disposalProcedure;

	/**
	* 注意事项
	*/
    @Schema(description="注意事项")
    private String attention;

	/**
	* 应急救援保障
	*/
    @Schema(description="应急救援保障")
    private String rescueSupport;

	/**
	* 预案内容
	*/
    @Schema(description="预案内容")
    private String contentDesc;

	/**
	* 处置方案编号
	*/
    @Schema(description="处置方案编号")
    private String disposalPlanNo;

	/**
	* 申请时间
	*/
    @Schema(description="申请时间")
    private LocalDateTime applyTime;

	/**
	* 状态
	*/
    @Schema(description="状态")
    private Integer planState;

	/**
	* 创建人ID
	*/
    @Schema(description="创建人ID")
    private Long createUserId;

	/**
	* 修改人ID
	*/
    @Schema(description="修改人ID")
    private Long modifyUserId;



	public String getOrgIdStr() {
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company,this.orgId);
	}

	public String getAccidentTypeStr(){
		return DictResolver.getItemLabelByValue(ParkEmergencySysDictEnum.emergency_plan_accident_type, this.getAccidentType());
	}

}